package com.game.raceroom.player.item
{
	public class Car extends BaseItem
	{
		public var endure:int; 
		public var speed:int; 
		public var acccft:int; 
		public var bracft:int; 
		public var sccft:int; 
		public var turncft:int; 
		public var confradius:int; 
		public var maxatk:int; 
		public var minatk:int; 
		public var maxdef:int; 
		public var mindef:int; 
		public var fatalatkchance:int; 
		public var unfatalatkchance:int; 
		public var dodgechance:int; 
		public var undodgechance:int;
		public var weight:int; 
		public var parts:Array;
		public function Car()
		{
		}
		
		public override function clone():BaseItem{
			var car:Car=new Car();
			car.itype=itype;
			car.iid=iid;
			car.iqtt=iqtt;
			car.idesc=idesc;
			car.iname=iname;
			car.ipile=ipile;
			car.iprice=iprice;
			car.iuse=iuse;
			car.sale=sale;
			
		    car.endure=endure; 
		    car.speed=speed; 
		    car.acccft=acccft; 
		    car.bracft=bracft; 
		    car.sccft=sccft; 
		    car.turncft=turncft; 
		    car.confradius=confradius; 
		    car.maxatk=maxatk; 
		    car.minatk=minatk; 
		    car.maxdef=maxdef; 
		    car.mindef=mindef; 
		    car.fatalatkchance=fatalatkchance; 
		    car.unfatalatkchance=unfatalatkchance; 
		    car.dodgechance=dodgechance; 
		    car.undodgechance=undodgechance; 
		    car.weight=weight; 
			car.index=index; 
		    if(parts){
			    car.parts=new Array(parts.length);
			    for(var i in parts){
			     
			    	car.parts[i]=parts[i].clone();
			    }
		    }
		    return car;
		}
		
	}
}